import moment from 'moment'

class Formatter {

    // 格式化日期时间
    static formatDate(time) {
        let pattern = arguments[1] || 'YYYY-MM-DD HH:mm:ss'
        return moment(time).format(pattern)
    }
    static formatDate1(time) {
        let pattern = arguments[1] || 'YYYY-MM-DD'
        return moment(time).format(pattern)
    }
    static formatDate2(time) {
        let pattern = arguments[1] || 'YYYY-MM-DD'
        return moment(time).format(pattern)
    }
}



export default Formatter